<div class="main-content">
	<header>
		<h2>Feedbacks</h2>
	</header>

	<section>
		<table class="datatable paginate sortable full">
			<thead>
			<tr>
				<th>Subject</th>
				<th>Name</th>
				<th>Email</th>
				<th>Created At</th>
				<th style="width:70px"></th>
			</tr>
			</thead>
			<tbody>
			<?php foreach ($feedbacks as $feedback){ ?>
			<tr>
				<td align="center" class="feedback">
          <?php if($feedback->read == 0){ ?>
            <img src="<?php echo bu("images/icons/new-icon-green.png"); ?>" />
          <?php } ?>
          <a href="<?php echo bu("admin/feedbacks/".$feedback->id) ?>"><?php echo $feedback->subject; ?></a>
        </td>
				<td align="center"><?php echo $feedback->name; ?></td>
				<td align="center"><?php echo $feedback->email; ?></td>
				<td align="center"><?php echo Helpers::customDate($feedback->created_at); ?></td>
				<td>
				<ul class="action-buttons">
					<li><a href="<?php echo bu('admin/feedbacks/delete'); ?>?id=<?php echo $feedback->id; ?>" method="POST" class="button button-gray no-text"><span class="bin"></span>Delete</a></li>
				</ul>
				</td>
			</tr>
			<?php } ?>
			</tbody>
		</table>
	</section>
</div>